/**
 * Project Name:youba
 * Package Name:com.inoneone.youba.mcht.dto.rsp
 * Date:2017/6/22下午12:51
 * Copyright (c) 2017, www.zbj.com All Rights Reserved
 */
package com.inoneone.youba.mcht.dto.rsp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.inoneone.youba.mcht.util.CustomDecimalSerialize;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Description: (描述) </br>
 * Date: 2017/6/22下午12:51 </br>
 *
 * @author 姬远玄
 * @since JDK 1.7
 */
public class MchChargeStatisticsRsp {

    //总充值金额
    @JsonSerialize(using = CustomDecimalSerialize.class)
    public BigDecimal dateTotalAmount = BigDecimal.ZERO;

    //总充值笔数
    public int dateTotalCount = 0;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public Date beginDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public Date endDate;

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public List<Statistics> statistics;

    public BigDecimal getDateTotalAmount() {
        return dateTotalAmount;
    }

    public void setDateTotalAmount(BigDecimal dateTotalAmount) {
        this.dateTotalAmount = dateTotalAmount;
    }

    public int getDateTotalCount() {
        return dateTotalCount;
    }

    public void setDateTotalCount(int dateTotalCount) {
        this.dateTotalCount = dateTotalCount;
    }

    public List<Statistics> getStatistics() {
        return statistics;
    }

    public void setStatistics(List<Statistics> statistics) {
        this.statistics = statistics;
    }

    public static class Statistics
    {
        /**
         * 日期
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
        private Date orderDate;

        /**
         * 充值金额
         */
        @JsonSerialize(using = CustomDecimalSerialize.class)
        private BigDecimal totalAmount;

        /**
         * 充值笔数
         */
        private int totalCount;


        public Date getOrderDate() {
            return orderDate;
        }

        public void setOrderDate(Date orderDate) {
            this.orderDate = orderDate;
        }

        public BigDecimal getTotalAmount() {
            return totalAmount;
        }

        public void setTotalAmount(BigDecimal totalAmount) {
            this.totalAmount = totalAmount;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

    }
}


